<template>
	<u-badge  absolute :offset="[-13,-12]" size="mini"
		:count="allNum" type="error">
	</u-badge>
</template>

<script>
	import Decimal from 'decimal.js'
	export default{
		props:['item'],
		computed:{
			allNum(){
				let numAll = new Decimal(0)
				this.item.platformGoodsSpecMix.forEach(i => {
					numAll =  new Decimal(i.purNum).add(numAll)
				})
				return numAll
			}
		}
	}
</script>

<style>
</style>